projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
79de641
)
grid: Remove unnecessary NULL checks
author
Timm Bäder
<mail@baedert.org>
Fri, 28 Apr 2017 09:25:21 +0000
(11:25 +0200)
committer
Timm Bäder
<mail@baedert.org>
Fri, 28 Apr 2017 09:27:09 +0000
(11:27 +0200)
The minimum and natural pointers passed to measure are never NULL and
that's the only place where we call gtk_grid_get_size_for_size.
gtk/gtkgrid.c
patch
|
blob
|
history
diff --git
a/gtk/gtkgrid.c
b/gtk/gtkgrid.c
index 66899650e6c9eff2c206a5be6f96247d0e73dae5..7079991081b7eab1c9e7062d10cfcb98eb4aa9b9 100644
(file)
--- a/
gtk/gtkgrid.c
+++ b/
gtk/gtkgrid.c
@@
-1470,11
+1470,8
@@
gtk_grid_get_size_for_size (GtkGrid *grid,
GtkGridLines *lines;
gint min_size, nat_size;
- if (minimum)
- *minimum = 0;
-
- if (natural)
- *natural = 0;
+ *minimum = 0;
+ *natural = 0;
if (minimum_baseline)
*minimum_baseline = -1;